/**
 * Created by shc@lierda.com on 2017/2/22.
 */
var React = require('react');
var Product = require('../components/Product');

module.exports = React.createClass({
    getInitialState: function (){
        return {
            gjlist:[
            ],
        }
    },
    componentDidMount: function () {
    },
    render: function () {
        var p = this;
        var gjlist = this.state.gjlist.map(function(o){
            /*var objs = JSON.stringify(o.proinfo) ;
            localStorage.setItem("prolist",objs);*/
            return(
                <div key={o.id} className="pro-con">
                    <div className="guo_title">
                        <img src={o.picurl}/>
                    </div>
                    <div className="gj-pro">
                        <Product></Product>
                    </div>
                </div>
            )
        });
        return (
            <div className="gj-container">
                {gjlist}
            </div>
        )
    }
});
